/*
 * @Author: moqian 2898089131@qq.com
 * @Date: 2022-05-05 21:40:38
 * @LastEditors: moqian 2898089131@qq.com
 * @LastEditTime: 2022-05-09 09:11:31
 * @FilePath: /mqtt_ds18b20/inc/packinfo.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/********************************************************************************
 *      Copyright:  (C) 2022 Zhang Changxing<ZhangChangxingVIP@163.com>
 *                  All rights reserved.
 *
 *       Filename:  packinfo.h
 *    Description:  This head file defines the structure of the packet and gets the device number.
 *
 *        Version:  1.0.0(04/13/2022)
 *         Author:  Zhang Changxing <ZhangChangxingVIP@163.com>
 *      ChangeLog:  1, Release initial version on "04/13/2022 01:24:02 AM"
 *                 
 ********************************************************************************/

#ifndef  _PACKINFO_H_
#define  _PACKINFO_H_

#define DEVID_LEN   16
#define TIME_LEN   32


/****************************************************************************
 *   description:   Packet structure sent to the server
 *        member:   $devid:     An array used to store device names
 *                  $strtime:   An array used to store dates and times
 *                  $temper:    Used to store the obtained temperature value
 ****************************************************************************/
typedef struct pack_info_s
{
    char     devid[DEVID_LEN];
    char     strtime[TIME_LEN];
    float    temper;
}pack_info_t;

#endif